package com.btex.app.entity;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/10/26
 * @time 下午2:24
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class DealInfo {

    /**
     * code : 1
     * data : {"trade_lists":[{"trade_id":"748944","contract_id":"748944","contract_symbol":"BTC_USD","price":"6404.16648000","num":"1000","ctime":"1540461157","user_id":"100038","order_id":"748943","order_price":"0.00000000","sum_num":"1000","rest_num":"0","trade_info":"buy"},{"trade_id":"748942","contract_id":"748942","contract_symbol":"BTC_USD","price":"6404.16648000","num":"295","ctime":"1540461155","user_id":"100038","order_id":"748940","order_price":"0.00000000","sum_num":"1000","rest_num":"705","trade_info":"buy"},{"trade_id":"748941","contract_id":"748941","contract_symbol":"BTC_USD","price":"6404.15674500","num":"705","ctime":"1540461155","user_id":"100038","order_id":"748940","order_price":"0.00000000","sum_num":"1000","rest_num":"295","trade_info":"buy"},{"trade_id":"748939","contract_id":"748939","contract_symbol":"BTC_USD","price":"6404.15674500","num":"1000","ctime":"1540461154","user_id":"100038","order_id":"748938","order_price":"0.00000000","sum_num":"1000","rest_num":"0","trade_info":"buy"},{"trade_id":"747844","contract_id":"747844","contract_symbol":"BTC_USD","price":"6406.27897500","num":"10","ctime":"1540457883","user_id":"100038","order_id":"747209","order_price":"6407.00000000","sum_num":"10","rest_num":"0","trade_info":"buy"},{"trade_id":"747771","contract_id":"747771","contract_symbol":"BTC_USD","price":"6409.74463500","num":"100","ctime":"1540457688","user_id":"100038","order_id":"747770","order_price":"6412.00000000","sum_num":"100","rest_num":"0","trade_info":"buy"},{"trade_id":"729822","contract_id":"729822","contract_symbol":"BTC_USD","price":"6433.92964500","num":"1000","ctime":"1540390342","user_id":"100038","order_id":"729821","order_price":"0.00000000","sum_num":"1000","rest_num":"0","trade_info":"buy"},{"trade_id":"729760","contract_id":"729760","contract_symbol":"BTC_USD","price":"6432.88800000","num":"1000","ctime":"1540390171","user_id":"100038","order_id":"729759","order_price":"3.00000000","sum_num":"1000","rest_num":"0","trade_info":"sell"},{"trade_id":"729718","contract_id":"729718","contract_symbol":"BTC_USD","price":"6432.68356500","num":"2000","ctime":"1540390030","user_id":"100038","order_id":"729717","order_price":"0.00000000","sum_num":"2000","rest_num":"0","trade_info":"buy"},{"trade_id":"729696","contract_id":"729696","contract_symbol":"BTC_USD","price":"6433.08270000","num":"935","ctime":"1540390017","user_id":"100038","order_id":"729694","order_price":"0.00000000","sum_num":"1000","rest_num":"65","trade_info":"sell"}],"data_hash":"4b794a7739ea5ad6ca63fa6a596b9e95"}
     * info :
     */

    private int code;
    private DataBean data;
    private String info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static class DataBean {
        /**
         * trade_lists : [{"trade_id":"748944","contract_id":"748944","contract_symbol":"BTC_USD","price":"6404.16648000","num":"1000","ctime":"1540461157","user_id":"100038","order_id":"748943","order_price":"0.00000000","sum_num":"1000","rest_num":"0","trade_info":"buy"},{"trade_id":"748942","contract_id":"748942","contract_symbol":"BTC_USD","price":"6404.16648000","num":"295","ctime":"1540461155","user_id":"100038","order_id":"748940","order_price":"0.00000000","sum_num":"1000","rest_num":"705","trade_info":"buy"},{"trade_id":"748941","contract_id":"748941","contract_symbol":"BTC_USD","price":"6404.15674500","num":"705","ctime":"1540461155","user_id":"100038","order_id":"748940","order_price":"0.00000000","sum_num":"1000","rest_num":"295","trade_info":"buy"},{"trade_id":"748939","contract_id":"748939","contract_symbol":"BTC_USD","price":"6404.15674500","num":"1000","ctime":"1540461154","user_id":"100038","order_id":"748938","order_price":"0.00000000","sum_num":"1000","rest_num":"0","trade_info":"buy"},{"trade_id":"747844","contract_id":"747844","contract_symbol":"BTC_USD","price":"6406.27897500","num":"10","ctime":"1540457883","user_id":"100038","order_id":"747209","order_price":"6407.00000000","sum_num":"10","rest_num":"0","trade_info":"buy"},{"trade_id":"747771","contract_id":"747771","contract_symbol":"BTC_USD","price":"6409.74463500","num":"100","ctime":"1540457688","user_id":"100038","order_id":"747770","order_price":"6412.00000000","sum_num":"100","rest_num":"0","trade_info":"buy"},{"trade_id":"729822","contract_id":"729822","contract_symbol":"BTC_USD","price":"6433.92964500","num":"1000","ctime":"1540390342","user_id":"100038","order_id":"729821","order_price":"0.00000000","sum_num":"1000","rest_num":"0","trade_info":"buy"},{"trade_id":"729760","contract_id":"729760","contract_symbol":"BTC_USD","price":"6432.88800000","num":"1000","ctime":"1540390171","user_id":"100038","order_id":"729759","order_price":"3.00000000","sum_num":"1000","rest_num":"0","trade_info":"sell"},{"trade_id":"729718","contract_id":"729718","contract_symbol":"BTC_USD","price":"6432.68356500","num":"2000","ctime":"1540390030","user_id":"100038","order_id":"729717","order_price":"0.00000000","sum_num":"2000","rest_num":"0","trade_info":"buy"},{"trade_id":"729696","contract_id":"729696","contract_symbol":"BTC_USD","price":"6433.08270000","num":"935","ctime":"1540390017","user_id":"100038","order_id":"729694","order_price":"0.00000000","sum_num":"1000","rest_num":"65","trade_info":"sell"}]
         * data_hash : 4b794a7739ea5ad6ca63fa6a596b9e95
         */

        private String data_hash;
        private List<TradeListsBean> trade_lists;

        public String getData_hash() {
            return data_hash;
        }

        public void setData_hash(String data_hash) {
            this.data_hash = data_hash;
        }

        public List<TradeListsBean> getTrade_lists() {
            return trade_lists;
        }

        public void setTrade_lists(List<TradeListsBean> trade_lists) {
            this.trade_lists = trade_lists;
        }

        public static class TradeListsBean {
            /**
             * trade_id : 748944
             * contract_id : 748944
             * contract_symbol : BTC_USD
             * price : 6404.16648000
             * num : 1000
             * ctime : 1540461157
             * user_id : 100038
             * order_id : 748943
             * order_price : 0.00000000
             * sum_num : 1000
             * rest_num : 0
             * trade_info : buy
             */

            private String trade_id;
            private String contract_id;
            private String contract_symbol;
            private String price;
            private String num;
            private String ctime;
            private String user_id;
            private String order_id;
            private String order_price;
            private String sum_num;
            private String rest_num;
            private String trade_info;
            private String is_liquidation;
            private String is_cross;
            private String is_adl;
            private String type;

            public String getTrade_fee() {
                return trade_fee;
            }

            public void setTrade_fee(String trade_fee) {
                this.trade_fee = trade_fee;
            }

            private String trade_fee;

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }


            public String getIs_adl() {
                return is_adl;
            }

            public void setIs_adl(String is_adl) {
                this.is_adl = is_adl;
            }


            public String getIs_liquidation() {
                return is_liquidation;
            }

            public void setIs_liquidation(String is_liquidation) {
                this.is_liquidation = is_liquidation;
            }


            public String getIs_cross() {
                return is_cross;
            }

            public void setIs_cross(String is_cross) {
                this.is_cross = is_cross;
            }


            public String getLeverage() {
                return leverage;
            }

            public void setLeverage(String leverage) {
                this.leverage = leverage;
            }

            private String leverage;

            public String getTrade_id() {
                return trade_id;
            }

            public void setTrade_id(String trade_id) {
                this.trade_id = trade_id;
            }

            public String getContract_id() {
                return contract_id;
            }

            public void setContract_id(String contract_id) {
                this.contract_id = contract_id;
            }

            public String getContract_symbol() {
                return contract_symbol;
            }

            public void setContract_symbol(String contract_symbol) {
                this.contract_symbol = contract_symbol;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getNum() {
                return num;
            }

            public void setNum(String num) {
                this.num = num;
            }

            public String getCtime() {
                return ctime;
            }

            public void setCtime(String ctime) {
                this.ctime = ctime;
            }

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }

            public String getOrder_id() {
                return order_id;
            }

            public void setOrder_id(String order_id) {
                this.order_id = order_id;
            }

            public String getOrder_price() {
                return order_price;
            }

            public void setOrder_price(String order_price) {
                this.order_price = order_price;
            }

            public String getSum_num() {
                return sum_num;
            }

            public void setSum_num(String sum_num) {
                this.sum_num = sum_num;
            }

            public String getRest_num() {
                return rest_num;
            }

            public void setRest_num(String rest_num) {
                this.rest_num = rest_num;
            }

            public String getTrade_info() {
                return trade_info;
            }

            public void setTrade_info(String trade_info) {
                this.trade_info = trade_info;
            }
        }
    }
}
